<?php

namespace app\common\model;

//use think\Model;

class MnemonicWordModel extends BaseModel {

	protected $table = 'tp_mnemonic_word';

	public function getWord(){
		$words = $this->column('word');
		$word = array_rand($words,10);
		shuffle($word);
		$data = [];
		foreach ($word as $key => $val) {
			$data[] = $words[$val];
		}
		return $data;
	}
}